@echo off

cd ..
set PRJ_HOME=%cd%
cd bin
@echo PROJECT_HOME = %PRJ_HOME%

set LOG_HOME=%PRJ_HOME%\logs
set CLASSPATH=.

rem Add jars to classpath
for %%F in (%PRJ_HOME%\lib\*.jar) do call :ADD_CP %%F

rem Run program
goto RUN

:ADD_CP
set CLASSPATH=%CLASSPATH%;%1
goto END

:RUN
@echo CLASSPATH = %CLASSPATH%
set JAVA_OPTS="-Dlogging.home=%LOG_HOME%"
java -classpath %CLASSPATH% %JAVA_OPTS% cn.com.tiza.spiro.jvm.gc.optimization.Due2PermSizeFullGC
@echo END
goto END


:END